<table class="table-grid table-multiple">
    <thead>
        <tr>
            <th class="col-idx"><a href="#" class="btn-arrowstop lnk-multiple" onclick="">&nbsp;</a></th>
            <if condition='$isSuperAdmin'><th>租户ID</th></if>
            <th>客户编号</th>
            <th>客户姓名</th>
            <th>电话号码</th>
            <th>联系地址</th>
            <th>购买次数</th>
            <th>累计消费</th>
            <th>上次购买时间</th>
            <th>工号</th>
            <th>状态</th>
            <th>创建时间</th>
            <th>操作</th>
        </td></tr>
    </thead>
    <tbody>
    <foreach name="list" item="vo">
        <tr data-key="{$vo.id}">
            <td>{$key}</td>
            <if condition='$isSuperAdmin'><td>{$vo.siteID}</td></if>
            <td>{$vo.serialNo}</td>
            <td>{$vo.personalName}</td>
            <td>{$vo.telphone}</td>
            <td>{$vo.address}</td>
            <td>{$vo.buyCount}</td>
            <td>{$vo.cumulativeAmount}</td>
            <td>{$vo.lastBuyTime}</td>
            <td>{$vo.userName}</td>
            <td>{$vo.state|sofn_get_state_text='user-state',###}</td>
            <td>{$vo.createdTime}</td>
            <td class="no-padding">
                <a href="{:U('Customer/customer_restore','id='.$vo['id'])}" class="btn-minus lnk-confirm">还原</a>                
                <if condition="$upr['删除客户']">
                <a href="{:U('Customer/customer_remove','id='.$vo['id'])}" class="btn-minus lnk-confirm">彻底删除</a>
                </if>
            </td>
        </td></tr>
    </foreach>
</tbody>
</table>
{$pager}